package CI.aufgabe2.cip.mynodes;

import CI.aufgabe2.cip.SymbolTable;
import CI.aufgabe2.cip.base.AbstractDescr;

public class MyReadNode extends MyAbstractNode {

	private static final long serialVersionUID = 1L;
	private final MyPromptNode prompt;

	public MyReadNode(MyPromptNode p) {
		prompt = p;
	}

	@Override
	public void print() {
		trace("MyReadNode ");
		if (prompt != null)
			prompt.print();

		unindent();
	}
	
	
	public AbstractDescr compile(SymbolTable sym) {
		try {
			throw new  IllegalAccessException(this.getClass().getName());
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}
}
